﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Database.Models
{
    [Table("PhanLoaiChiTietNguonNuoc")]
    public class PhanLoaiChiTietNguonNuoc : BaseModel
    {
        public PhanLoaiChiTietNguonNuoc()
        {
            NguonNuocs = new HashSet<NguonNuoc>();
        }

        public int Id { get; set; }

        [Required]
        [MaxLength(255)]
        public string Ten { get; set; }

        public virtual LoaiNguonNuoc LoaiNguonNuoc { get; set; }
        public ICollection<NguonNuoc> NguonNuocs { get; set; }
    }
}